package com.hdd.biz.member.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDateTime;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import com.hdd.biz.app.entity.PaintingWorksModel;
import com.hdd.biz.painting.entity.PaintingWorks;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 系统用户表
 * </p>
 *
 * @author fang
 * @since 2021-02-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_biz_member")
@ApiModel(value="Member对象", description="系统用户表")
public class Member implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String userId;

    @ApiModelProperty(value = "用户在平台的展览号(平台编号)")
    private String paintingNum;

    @ApiModelProperty(value = "公众号openid")
    private String gzhOpenid;

    @ApiModelProperty(value = "小程序的openid")
    private String xcxOpenid;

    @ApiModelProperty(value = "微信开发平台统一id，即微信用户可以通用，数据共享使用")
    private String unionId;

    private String username;

    private String password;

    private String nickname;

    @ApiModelProperty(value = "简介描述")
    private String description;

    private String email;

    private String headImgUrl;

    @ApiModelProperty(value = "手机号码")
    private String phone;

    private String telephone;

    private String birthday;

    @ApiModelProperty(value = "0未知 1男 2女")
    private Integer sex;

    private Integer status;

    @ApiModelProperty(value = "省")
    private String province;

    @ApiModelProperty(value = "市")
    private String city;

    @ApiModelProperty(value = "区/县")
    private String area;

    @ApiModelProperty(value = "用户总收入")
    private Double income;

    @ApiModelProperty(value = "用户余额")
    private Double balance;

    @ApiModelProperty(value = "学校")
    private String school;

    @ApiModelProperty(value = "职业")
    private String profession;

    @ApiModelProperty(value = "作品被浏览次数")
    private Long browseCount;

    @ApiModelProperty(value = "作品被喜欢次数")
    private Long favourCount;

    @ApiModelProperty(value = "用户类型，1：前端用户， 2：后台管理端用户")
    private String type;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime modifyTime;

    @ApiModelProperty(value = "0：正常  1：删除")
    private Integer delFlag;

    @ApiModelProperty(value = "说明")
    private String remark;

    @ApiModelProperty(value = "第二次登陆时间，从第二天开始算")
    private String secondTime;

    @ApiModelProperty(value = "最后一次登陆时间")
    private String lastTime;

    @ApiModelProperty(value = "分享总次数")
    private Long shareCount;

    @ApiModelProperty(value = "真实姓名")
    private String realName;

    @ApiModelProperty(value = "是否使命 T,F")
    private String isReal;

    @ApiModelProperty(value = "支付宝账户")
    private String alipayAccount;

    @ApiModelProperty(value = "信任用户，0信任，1不信任")
    private Integer trustType;

    @ApiModelProperty(value = "连续合规作品数量的重置次数")
    private Integer iterations;

    @ApiModelProperty(value = "连续合规作品数量，有一次不合规重置")
    private Integer paintingTrustNum;

    @TableField(exist = false)
    private List<PaintingWorks> paintingWorksModelList;

    @TableField(exist = false)
    private boolean mutualFollow;

    @TableField(exist = false)
    private int works;

    private String invented;

    private String invitation;



}
